package com.tencent.iov.cowin.befsale.clue.value.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Describe: 记录发送状态
 * @author: zly
 * @created: 2022-01-11
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum RecordSendMqStatusEnum {
    SEND_NO(0,"未发送成功"),
    SEND_YES(1,"发送成功"),
    ;

    Integer code;
    String name;


    /**
     * 跟进type获
     * @param code
     * @return
     */
    public static String getDictionaries(Integer code){
        for (RecordSendMqStatusEnum cs : RecordSendMqStatusEnum.values()) {
            if(cs.getCode().equals(code)){
                return cs.getName();
            }
        }
        return null;
    }
}
